package com.heo.task.thread;

import java.io.Serializable;

public class WaterSendInfo implements Serializable {

	private static final long serialVersionUID = -7890663945232864573L;

	private String imei;   //消息mac地址
	private String appId; 
	private String sm;  //消息内容
	private int sc; // 当前第几次重发
	private int ss; // 重发次数
	private long st;  //发送时间
	private int sl;   //休眠时间

	public WaterSendInfo() {
	}
	
	public WaterSendInfo(String appId, String imei, String sendMessage, int sendSize,
			int sleep) {
		this.sl = sleep;
		this.st = System.currentTimeMillis() + sleep;
		this.imei = imei;
		this.appId = appId;
		this.sm = sendMessage;
		this.ss = sendSize;
	}

	public String getImei() {
		return imei;
	}

	public String getAppId() {
		return appId;
	}

	public String getSm() {
		return sm;
	}

	public int getSc() {
		return sc;
	}

	public void setSc(int sc) {
		this.sc = sc;
	}

	public int getSs() {
		return ss;
	}

	public long getSt() {
		return st;
	}

	public void setSt(long st) {
		this.st = st;
	}

	public int getSl() {
		return sl;
	}

	@Override
	public String toString() {
		StringBuffer sBuffer = new StringBuffer();
		sBuffer.append("imei=");
		sBuffer.append(imei);
		sBuffer.append("appId=");
		sBuffer.append(appId);
		sBuffer.append(",sendMessage=");
		sBuffer.append(sm);
		sBuffer.append(",sendCount=");
		sBuffer.append(sc);
		sBuffer.append(",sendSize=");
		sBuffer.append(ss);
		sBuffer.append(",sendTime=");
		sBuffer.append(st);
		return sBuffer.toString();
	}
}
